package com.gtw.modules.sys.service.impl;

import com.gtw.modules.dao.TbBankCardDao;
import com.gtw.modules.entity.TbBankCard;
import com.gtw.modules.sys.service.TbBankCardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by wuye on 2018/3/26.
 */
@Service
public class TbBankCardServiceImpl implements TbBankCardService {

    @Autowired
    private TbBankCardDao bankcardDao;

    @Override
    public TbBankCard queryObject(Integer id){
        return bankcardDao.queryObject(id);
    }

    @Override
    public List<TbBankCard> queryList(Map<String, Object> map){
        return bankcardDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map){
        return bankcardDao.queryTotal(map);
    }

    @Override
    public void save(TbBankCard bankcard){
        bankcardDao.save(bankcard);
    }

    @Override
    public void update(TbBankCard bankcard){
        bankcardDao.update(bankcard);
    }

    @Override
    public void delete(Integer id){
        bankcardDao.delete(id);
    }

    @Override
    public void deleteBatch(Integer[] ids){
        bankcardDao.deleteBatch(ids);
    }

    @Override
    public List<TbBankCard> queryAll() {
        return bankcardDao.queryAll();
    }
}
